<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>torrent-server status page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<h1>torrent-server index</h1>
<p>This is a simple, open-source BitTorrent tracker, indexer, and 'webseed' file-server running on Google's AppEngine.  Visit the <a href="http://code.google.com/p/torrent-server">project homepage</a> for more details or to download the code.
</p>
<table class="listofstuff" id="torrents">
<caption>Torrents</caption>
<thead>
<tr>
 <th class="torrentname">Name</th>
 <th class="torrentsize">Size</th>
 <th class="torrentdate">Uploaded</th>
 <th class="torrentlinks">Download via:</th>
 <th class="torrentcomment">Comment</th>
{% if is_current_user_admin %}<th>Admin</th>{% endif %}
</tr>
</thead>
<tbody>
{% for torrent in torrents %}
<tr>
 <td class="torrentname">{{ torrent.name|escape }}</td>
 <td class="torrentsize">{{ torrent.size|filesizeformat }}</td>
 <td class="torrentdate">{{ torrent.date|date }}</td>
 <td class="torrentlinks">{% for link in torrent.links %}<a href="{{link.url}}">{{link.type}}</a> {% endfor %}</td>
 <td class="torrentcomment">{% if torrent.comment %}{{ torrent.comment|escape }}{% else %}&nbsp;{% endif %}</td>
{% if is_current_user_admin %}
 <td class="torrentadmin"><a href="{{torrent.delete_url}}">Delete</a></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>
